package com.dkm.ec.cart.persistence.entity;
import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.dkm.base.api.annotion.IField;
import com.dkm.base.api.annotion.ITable;
import com.dkm.base.db.persistence.entity.AbstractPo;

/**
 * 对象功能:购物车 Tbl对象
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2017-05-17 23:30:36
 */
 @ITable(name="cartEntity",code="t_cart_entity")
public class CartEntityTbl extends AbstractPo<String>{
	@IField(name="id",column="id_")
	protected String  id; 		/*购物车 ID*/
	@IField(name="memberId",column="member_id_")
	protected String  memberId; 		/*顾客 ID*/
	@IField(name="partyId",column="party_id_")
	protected String  partyId; 		/*顾客的PID*/
	@IField(name="unlogin",column="unlogin_")
	protected char  unlogin; 		/*是否匿名*/
	@IField(name="createTime",column="create_time_")
	protected java.util.Date  createTime; 		/*创建时间*/
	@IField(name="updateTime",column="update_time_")
	protected java.util.Date  updateTime; 		/*更新时间*/
	@IField(name="type",column="type_")
	protected String  type; 		/*购物车类型。common=普通；direct=直接购买*/
	
	
	public void setId(String id) 
	{
		this.id = id;
	}
	/**
	 * 返回 购物车 ID
	 * @return
	 */
	public String getId() 
	{
		return this.id;
	}
	public void setMemberId(String memberId) 
	{
		this.memberId = memberId;
	}
	/**
	 * 返回 顾客 ID
	 * @return
	 */
	public String getMemberId() 
	{
		return this.memberId;
	}
	public void setPartyId(String partyId) 
	{
		this.partyId = partyId;
	}
	/**
	 * 返回 顾客的PID
	 * @return
	 */
	public String getPartyId() 
	{
		return this.partyId;
	}
	public void setUnlogin(char unlogin) 
	{
		this.unlogin = unlogin;
	}
	/**
	 * 返回 是否匿名
	 * @return
	 */
	public char getUnlogin() 
	{
		return this.unlogin;
	}
	public void setCreateTime(java.util.Date createTime) 
	{
		this.createTime = createTime;
	}
	/**
	 * 返回 创建时间
	 * @return
	 */
	public java.util.Date getCreateTime() 
	{
		return this.createTime;
	}
	public void setUpdateTime(java.util.Date updateTime) 
	{
		this.updateTime = updateTime;
	}
	/**
	 * 返回 更新时间
	 * @return
	 */
	public java.util.Date getUpdateTime() 
	{
		return this.updateTime;
	}
	public void setType(String type) 
	{
		this.type = type;
	}
	/**
	 * 返回 购物车类型。common=普通；direct=直接购买
	 * @return
	 */
	public String getType() 
	{
		return this.type;
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() 
	{
		return new ToStringBuilder(this)
		.append("id", this.id) 
		.append("memberId", this.memberId) 
		.append("partyId", this.partyId) 
		.append("unlogin", this.unlogin) 
		.append("createTime", this.createTime) 
		.append("updateTime", this.updateTime) 
		.append("type", this.type) 
		.toString();
	}
}